package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 项目名：ifp-user <br>
 * 包名：com.ynet.middleground.user.bean <br>
 * 类名：ValidPersonBaseReq <br>
 * 描述： 个人 2 要素比对请求对象
 * 
 * @author Suremotoo
 * @create 2021-11-24 14:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "个人 2 要素比对请求对象", description = "个人 2 要素比对请求对象")
public class ValidPersonBaseReq extends BaseReqObj {

    private static final long serialVersionUID = -4454600196938239188L;

    @ApiModelProperty(value = "姓名", notes = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "身份证号（大陆二代身份证）", notes = "身份证号（大陆二代身份证）", required = true)
    @NotBlank(message = "身份证号不能为空")
    private String idNo;

}
